﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage_EmpDetail.master"
    AutoEventWireup="true" CodeFile="EmpMoveList.aspx.cs" Inherits="Employees_EmpMoveList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="ViewEmpMove">
    </infolight:webdatasource>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        pagesize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:BoundField DataField="EmpmanoeuvreId" HeaderText="编号" 
                    SortExpression="EmpmanoeuvreId" />
                <asp:BoundField DataField="EmployeeID" HeaderText="员工" 
                    SortExpression="EmployeeID" />
                <asp:TemplateField HeaderText="变动时间" 
                    SortExpression="EmpmanoeuvreDate">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpMoveEmpmanoeuvreDateE" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" Text='<%# Bind("EmpmanoeuvreDate") %>' 
                            ToolTip="EmpmanoeuvreDate" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewEmpMoveEmpmanoeuvreDateF" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" ToolTip="EmpmanoeuvreDate" UseButtonImage="True" 
                            Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewEmpMoveEmpmanoeuvreDate" runat="server" 
                            Text='<%# Bind("EmpmanoeuvreDate", "{0:d}") %>' ToolTip="EmpmanoeuvreDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="原始部门" SortExpression="OrigDepartment">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("OrigDepartment") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsDepartment" 
                            DataTextField="DepartmentName" DataValueField="DepartmentId" DriverObject="" 
                            Filter="" FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("OrigDepartment") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="替换部门" SortExpression="NowDepartment">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("NowDepartment") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsDepartment" 
                            DataTextField="DepartmentName" DataValueField="DepartmentId" DriverObject="" 
                            Filter="" FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("NowDepartment") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="原始职务" SortExpression="OrigJob">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("OrigJob") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsJob" DataTextField="JobName" 
                            DataValueField="JobId" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="True" SelectedValue='<%# Bind("OrigJob") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="替换职务" SortExpression="NowJob">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("NowJob") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList4" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsJob" DataTextField="JobName" 
                            DataValueField="JobId" DriverObject="" Filter="" FilterObject="" 
                            onlyshowselecttext="True" SelectedValue='<%# Bind("NowJob") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="变动原因" SortExpression="ManoeuvreReason">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ManoeuvreReason") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" ReadOnly="True" 
                            Text='<%# Bind("ManoeuvreReason") %>' TextMode="MultiLine"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
</columns>
        <rowstyle backcolor="#EFF3FB" horizontalalign="Center"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
    <infolight:webdatasource id="wdsDepartment" runat="server" selectalias="Usasdb" selectcommand="select Department.DepartmentId,Department.DepartmentName from Department"
        webdatasetid="">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsJob" runat="server" selectalias="Usasdb" selectcommand="select CompanyJob.JobId,CompanyJob.JobName from CompanyJob"
        webdatasetid="">
    </infolight:webdatasource>
</asp:Content>
